package com.ssm.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ssm.user.entity.po.UserPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository //可被spring扫描类似@Controller, 可也不加注解
public interface UserMapper extends BaseMapper<UserPo> {

    IPage<UserPo> getUserPage(@Param("po") UserPo userPo, IPage<UserPo> userPoPage);

    Long count(UserPo userPo);
}
